package com.sky.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {
    @PostMapping("/services/collector/event")
    public ResponseEntity<String> handleEvent(@RequestBody String eventData) {
        // 处理事件数据
        return ResponseEntity.ok("Event received");
    }

}
